package cn.cvs.dao;

import cn.cvs.pojo.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageRecordMapper {
    List<StorageRecord> selectList(@Param("goodsName") String goodsName, @Param("supplierId") Integer supplierId, @Param("payStatus") Integer payStatus) throws Exception;
    int add(StorageRecord storageRecord) throws Exception;
    int selectCountBySupplierId(@Param("supplierId") Integer integer) throws Exception;
    int selectCount(@Param("goodsName") String goodsName, @Param("supplierId") Integer supplierId, @Param("payStatus") Integer payStatus) throws Exception;

    int deleteById(@Param("id") Integer id) throws Exception;

    StorageRecord selectById(@Param("id") Integer id) throws Exception;

    int update(StorageRecord storageRecord) throws Exception;

    int deleteBySupplierId(@Param("supplierId") Integer supplierId) throws Exception;
}
